<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
<title></title>

<meta name="viewport" content="width=device-width, initial-scale=1.0"
	charset="utf-8">
<!-- 引入bootstrap -->
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/bootstrap.min.css">
<!-- 引入JQuery  bootstrap.js-->
<script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/js/caseoperation.js"></script>
<script src="${pageContext.request.contextPath}/js/cases.js"></script>

</head>
<body>
	<!-- 顶栏 -->
	<jsp:include page="../admin/top.jsp"></jsp:include>
	<!-- 中间主体 -->
	<div class="container" id="content">
		<div class="row">
			<%@ include file="/WEB-INF/jsp/admin/menu.jsp"%>
			<div class="col-md-10">
				<div class="panel panel-default">
					<div class="panel-heading">
						<div class="row">
							<h1 style="text-align: center;">添加测试计划</h1>
						</div>
					</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form"
							action="${pageContext.request.contextPath}/plan/addPlan"
							id="editfrom" method="post">

							<div class="form-group">
								<td><label for="inputEmail3" class="col-sm-2 control-label">计划名称：</label></td>
								<td><input id="planName" name="planName" type="text"
									value="" style="width: 230px;" class="form-control"
									placeholder="请输入计划名称" /></td>
							</div>

							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label"
									name="itemId">选择项目：</label>
								<div class="col-sm-10">
									<select class="form-control" name="itemId" id="itemId"
										style="width: 55%">
										<option value="0">请选择</option>
										<c:forEach var="caseItemList" items="${caseItemList}">
											<option value="${caseItemList.id}">${caseItemList.name}</option>
										</c:forEach>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label"
									name="itemId">选择环境：</label>
								<div class="col-sm-10">
									<select class="form-control" name="envId" id="envId"
										style="width: 55%">
										<option value="0">请选择</option>
										<c:forEach var="envList" items="${envList}">
											<option value="${envList.id}">${envList.name}</option>
										</c:forEach>
									</select>
								</div>
							</div>

							<div class="form-group">
								<td><label for="inputPassword3"
									class="col-sm-2 control-label">描述：</label></td>
								<td><textarea rows="3" cols="40" id="remark" name="remark"
										placeholder="请输入内容"></textarea></td>
							</div>

							<!-- <div class="form-group">
								<td><label for="inputEmail3" class="col-sm-2 control-label">用例列表：</label></td>
								<td><input id="caseName" name="caseName" type="text"
									value="" style="width: 230px;" class="form-control"	/></td>
							</div>
								 -->

							<div class="form-group" style="text-align: center">
								<!-- <input type="button" class="btn btn-primary" value="提交"
									onclick="addcase()"> -->
									<button class="btn btn-primary" type="submit">提交</button>
								<button class="btn btn-default" type="reset">重置</button>
							</div>
						</form>
					</div>

				</div>

			</div>
		</div>
	</div>
	<div class="container" id="footer">
		<div class="row">
			<div class="col-md-12"></div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$("#nav li:nth-child(3)").addClass("active")
</script>
</html>